/*
 * @Author: lushinian 277502873@qq.com
 * @Date: 2024-10-28 18:01:27
 * @LastEditors: lushinian 277502873@qq.com
 * @LastEditTime: 2024-10-29 11:33:53
 * @FilePath: \crm-admin\src\router\routes\modules\clues.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DASHBOARD: AppRouteRecordRaw = {
  path: '/clues',
  name: 'clues',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.clues.summary',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 1,
  },
  children: [
    {
      path: 'cluesSummary',
      name: 'cluesSummary',
      component: () => import('@/views/clues/index.vue'),
      meta: {
        locale: 'menu.clues.summary',
        customIcon: true,
        icon: 'icon-clues',
        roles: ['*'],
        ignoreCache: false,
        requiresAuth: true
      },
    },
    {
      path: 'cluesUserInfo',
      name: 'cluesUserInfo',
      component: () => import('@/views/clues/userInfo.vue'),
      meta: {
        hideInMenu: true,
        ignoreCache: false,
        locale: 'menu.clues.userInfo',
        requiresAuth: true,
        customIcon: true,
        icon: 'icon-clues',
        roles: ['*'],
      },
    },
  ],
};

export default DASHBOARD;
